package com.yfp.operation.service;

import com.yfp.common.core.domain.R;
import com.yfp.operation.domain.StoredValueActivity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yfp.operation.domain.dto.StoredValueActivityDTO;

import java.util.List;

/**
* @author admin
* @description 针对表【stored_value_activity(储值活动)】的数据库操作Service
* @createDate 2024-11-22 10:17:26
*/
public interface StoredValueActivityService extends IService<StoredValueActivity> {

    /**
     * 储值活动列表
     * @param storedValueActivityDTO
     * @return
     */
    List<StoredValueActivity> activityList(StoredValueActivityDTO storedValueActivityDTO);

    /**
     * 新增储值活动
     * @param storedValueActivity
     */
    R<?> add(StoredValueActivity storedValueActivity);

    /**
     * 储值活动详情
     * @param activityId
     * @return
     */
    StoredValueActivity particulars(Long activityId);

    /**
     * 根据id修改状态
     * @param id
     * @param status
     */
    void updateStatus(Long id, Integer status);

    /**
     * 储值活动到期失效
     */
    void storedActivityExpire();


}
